Implement proper flagging of idle pools, test them with the watchdog thread, and failover correctly.