code: public void disconnect() {
  
  		if (!connected) {
  			return;
  		}
  
  		try {
  			socket.close();
  		} catch (IOException e) {
  			LOG.debug("I/O exception when closing socket", e);
  		}
  
  		this.connected = false;
  	}
docs: Disconnect this connection and close underlying {@link Socket}.