Pause a program when no APs left; corrected errors when programmed worm kills itself.