code: def connection_lost(self, exc=None):
          
          if self._loop.get_debug():
              self.producer.logger.debug('connection lost %s', self)
          self.event('connection_lost').fire(exc=exc)
docs: Fires the ``connection_lost`` event.