code: protected void closeChannel ()
      {
          if (_channel != null) {
              log.debug("Closing socket channel.");
  
              try {
                  _channel.close();
              } catch (IOException ioe) {
                  log.warning("Error closing failed socket: " + ioe);
              }
              _channel = null;
  
              // clear these out because they are probably large and in charge
              _oin = null;
              _oout = null;
          }
      }
docs: Closes the socket channel that we have open to the server. Called by either {@link
  #readerDidExit} or {@link #writerDidExit} whichever is called last.