session: use non-blocking chan instead of InfiniteChan
socks: use non-blocking chan instead of InfiniteChan
session: use signal instead of close. session will not close automatically
local & server: bug fixes