code: @Override
    public void close() throws IOException
    {
      SocketChannel channel = _channel;
      _channel = null;
  
      if (channel != null)
        channel.close();
    }
docs: Closes the underlying sockets and socket streams.