Fixing the Logout/currentUser race condition.