Print a debug message when handshaking works but an error is being captured