fix bug in resetManager. It's possible that after the election succeeds but before replication is stopped, a competing election also wins, writes data, and replicates to us. In such a case, we need to gracefully fail the election