Fix a bug when using failover pools. Some connections where left on
lower priority pools when higher ones came back online.