socksclient: check marshal errors
client: fix panicing while reconnecting
reverseproxy: check for nilness