def METHOD_NAME(self, exc):
    """The call signals close completion."""
    self.connection_lost_called = True
    self.sm_protocol.METHOD_NAME(exc)
    closing = self.closing
    if closing is None:
        closing = self.closing = self.loop.create_future()
    if not closing.done():
        closing.set_result(True)