(#2478) - cancel changes when replication is canceled