Added canceling background task.