Catch error while validating handshake