Add AJAX timeout handle and make sure to abort API request that can't obtain a session.