try { if (stmt != null) stmt.close(); } catch (Exception ignore) { }
closeConnection();
  private void printError(String errorMsg)  {    sp.printHTMLheader("RUBiS ERROR: Register user");    sp.printHTML("<h2>Your registration has not been processed due to the following error :</h2><br>");    sp.printHTML(errorMsg);    sp.printHTMLfooter();    try     {      if (stmt != null) stmt.close();	// close statement    }     catch (Exception ignore)     {    }  }