verifies the handshake secret and disconnects on bad match