Updated failover logic for situations where there are a number of concurrent requests.