If necessary, you can cancel a task before it finishes executing. Tapping Cancel while a task is executing will cause the following message to display:
Are you sure you want to cancel this task?
Tap Yes to abort the task. Tasks that do not require user interaction will continue to run while the message is displayed. Because of this, it is possible that the task will finish executing before you are able to select Yes or No.