Added use of HandshakeException
Merge pull request #46 from KSDaemon/exceptions-fix

Added use of HandshakeException - Looks good to me - thanks.