Added code to try to determine when the login-crash would occur