NXP-12262: Tasks should have an canceled state in their lifecycle