Return status 'cancelled' when replication is cancelled

Set result.status to 'cancelled' when replication is cancelled.