private void quit() {
	    if (!isConnected() || IRCUtil.confirmDialog("Are you sure to exit?",
	        "Quit")) {
	      if (isConnected()) {
	        conn.doQuit(quitMsg);
	        conn.close();
	      }
	      saveSettings(); 
	      System.exit(0);
	    } 
	  }