'Break cyclic dependancies to let python\'s GC free memory right now.'

def _destroy_socket(self):

    self.Stream.dispatch = None
    self.Stream.stream_footer_received = None
    self.Stream.stream_header_received = None
    self.Stream.destroy()
    self._sock.close()
    self.set_socket_state(SOCKET_DEAD)
