How to kill a task on a slave