Simplify doConnect.
Rename variable in serverWriter.Write
Fix crash: CONNECT with failed connection.