code: public void networkFailure (IOException ioe)
      {
          // if we're already closed, then something is seriously funny
          if (isClosed()) {
              log.warning("Failure reported on closed connection " + this + ".", new Exception());
              return;
          }
  
          // let the connection manager know we're hosed
          _cmgr.connectionFailed(this, ioe);
  
          // and close our socket
          closeSocket();
      }
docs: Called when there is a failure reading or writing to this connection. We notify the
  connection manager and close ourselves down.