'Closes the proxy socket associated with this SID.'

def deactivate(self, sid):

    sock = self._sessions.get(sid)
    if sock:
        try:
            sock.close()
        except socket.error:
            pass
        with self._sessions_lock:
            if (sid in self._sessions):
                log.warn((('SOCKS5    session    with    sid    =    "%s"    was    not    ' + 'removed    from    _sessions    by    sock.close()') % sid))
                del self._sessions[sid]
