Adding initial implementation for cancelTask. At this time, there is no implementation for what happens if the beggar cancels the task.