logoff ({ onComplete, onError, flush } = {}) {
    const observer = new LogoffObserver({
      onCompleted: onComplete,
      onError
    })

    // TODO: Verify the Neo4j version in the message
    const error = newError(
      'Driver is connected to a database that does not support logoff. ' +
        'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.'
    )

    // unsupported API was used, consider this a fatal error for the current connection
    this._onProtocolError(error.message)
    observer.onError(error)
    throw error
  }
Performs logoff of the underlying connection

@param {Object} param
@param {function(err: Error)} param.onError the callback to invoke on error.
@param {function()} param.onComplete the callback to invoke on completion.
@param {boolean} param.flush whether to flush the buffered messages.

@returns {StreamObserver} the stream observer that monitors the corresponding server response.