code: public void close()
    {
      synchronized (this) {
        if (_state == State.CLOSED)
          return;
  
        _state = State.CLOSED;
      }
  
      synchronized (this) {
        _idleHead = _idleTail = 0;
      }
  
      for (int i = 0; i < _idle.length; i++) {
        ClientSocket stream;
  
        synchronized (this) {
          stream = _idle[i];
          _idle[i] = null;
        }
  
        if (stream != null)
          stream.closeImpl();
      }
    }
docs: Close the client