code: void closeImpl()
    {
      ReadStreamOld is = _is;
      _is = null;
  
      WriteStreamOld os = _os;
      _os = null;
  
      try {
        if (is != null)
          is.close();
      } catch (Throwable e) {
        log.log(Level.FINER, e.toString(), e);
      }
  
      try {
        if (os != null)
          os.close();
      } catch (Throwable e) {
        log.log(Level.FINER, e.toString(), e);
      }
  
      if (is != null) {
        _connProbe.end();
  
        if (_requestStartTime > 0)
          _requestTimeProbe.end(_requestStartTime);
  
        if (_isIdle)
          _idleProbe.end();
      }
    }
docs: closes the stream.