Log the time waiting for login even when exception raised.