Added a tiny bit of debugging to failHandshake to indicate what failed.

This tiny bit of debugging info was very helpful in tracking down problems, so thought I'd add it. When the handshake fails, and debugging is enabled, it will now output the problem directly.