fix early connection closing before second round of slave failover