'called when the connection has finished closing'

def on_closed(self, connection, reply_code, reply_text):

    self.logger.info('on_closed:    %r    %r    %r', connection, reply_code, reply_text)
    self._stop()
