Merge error and output stream to read from them, coz 1.7.2 uses output stream.

The 1.7.2 handshake packet is still not valid