code: public void stop() throws IOException {
  		synchronized (this.monitor) {
  			if (this.serverThread != null) {
  				this.serverThread.close();
  				try {
  					this.serverThread.join(2000);
  				}
  				catch (InterruptedException ex) {
  					Thread.currentThread().interrupt();
  				}
  				this.serverThread = null;
  			}
  		}
  	}
docs: Stop the client, disconnecting any servers.
  @throws IOException in case of I/O errors