all to logs and reset masterUsed var when write replication is terminated