'called when stuck waiting for connection to close'

def on_timeout(self):

    self.logger.error('%s    timed    out;    on_timeout    called    at    %s', self, datetime.utcnow())
    self.timeout = None
    self._timed_out = True
    self.stop()
