def METHOD_NAME(self, timeout: Optional[float] = None):
    """
    Attempt close the connection.
    """
    # Cause a call to connection_lost where further cleanup occurs
    if self.transport:
        self.transport.METHOD_NAME()
        if timeout is None:
            timeout = self.app.config.GRACEFUL_SHUTDOWN_TIMEOUT
        self.loop.call_later(timeout, self.abort)