Better disconnect state tracking, fix not sending handshake on reconnect.
Disconnect clients on failed handshakes, also pressed the autoformat button...