better handling of socks errors in optimistic data mode
implemented https://github.com/globaleaks/Tor2web-3.0/issues/157