/** Handles the client pressing the Disconnect button. */
 public void disconnectFromServer() {
   client.closeConnection();
   toggleGUIStates(false); // lets the GUI know we've disconnected
 }