Issue #27 Fix hang on failed login.