protected void disconnect() {
		 if (isConnected()) { // TODO: Infinity loop bug
		      for (int i = tabs.getTabCount()-1; i > 0; i--)
		        tabs.remove(i);
		      updateTab(IRCUtil.CONSOLEWINDOWINDEX, "# Disconnected");
		      enableConnectMenuItem(true);
		    }
		    isConnected = false;
		    lastChanIndex = 0;
	}