destroy task.