Attempt recovery if replication is in a bad state, for instance if an error has caused replication to stop syncing.