Added a sleep timer when an unscheduled log out occurs
Merge branch 'hotfix/better_handle_authentication_error'