Better error handling

Also consume the stream for the first 8 bytes so clients can be oblivious to the SOCKS4a stream.