Fix Connection.handshake() to handle PayloadTooShortError