Fix usage of cancel_execute as a deferred callback (OMS-554)