stopping task from running