implement similar lifecycle for socks sessions as for socks server

Similar ideas to:
https://github.com/uProxy/uproxy-networking/pull/137

A SOCKS session lives as long as its TCP connection and datachannel.
I think you should avoid double-closures and use the boolean-guarded checks for closure of the underlying tcp and peer-connections.