Explored a simple way to know if a task was cancelled