FIX: Avoid infinite loop when session refresh fails.