'Cleans the session by cancelling all deferreds and closing sockets.
:return: A deferred that fires once the cleanup is done.'

@inlineCallbacks
def cleanup(self):

    (yield self._connection_pool.closeCachedConnections())
    (yield super(HttpTrackerSession, self).cleanup())
    self.request = None
    self.result_deferred = None
