Socks5Error only takes one param
catch Socks and socket.timeout errors