Add cancel block to block-based execution API