'There is no longer a connection for this request to respond over.
Clean up anything which can\'t be useful anymore.'

def connectionLost(self, reason):

    self._disconnected = True
    self.channel = None
    if (self.content is not None):
        self.content.close()
    for d in self.notifications:
        d.errback(reason)
    self.notifications = []
