public void logUserOut() {
        if(ChatClient.serverThread!=null && !ChatClient.serverThread.isInterrupted()){
        ChatClient.serverThread.interrupt();
            try {
                System.out.println("Stopping ClientServerCommunicator...");
                ChatClient.serverThread.join();
            } catch (InterruptedException ex) {
                System.err.println("GUI/Main Thread has been interrupted during logUserOut!"); 
                ex.printStackTrace();
            }
        }
    }