public void disconnect()
	{
    	try
    	{
    		sendPacket("QUIT");
    		datagramListener.interrupt();
    		multicastListener.interrupt();
    		UDPsocket.close();
    		addMessage("Connection closed");
    		clearConnectionList();
    		lblOnlineUsers.setText("Offline");
    	}
    	catch (Exception e)
    	{
    		System.out.println("Error trying to close connection");
    	}
	}