Stop slave after current task completion