"The simplest thing is to use a call to StopAllTasks() whenever the kill switch is pushed." . . . .