(#1846) - Dont write checkpoint when replication is cancelled