Add explicit exceptions for failed handshakes.