Adding auto failover for running queries.