[#1299] Make sure a handshake error will not trigger fireExceptionCaught two times