killing a task