Updated DPUs to use ctx.canceled() method.