Catch failed logins and throw an exception so we don't continue.

This check will stop phpseclib from continuing if there has been a login failure