exception handling for handshake not approveed