User:Feildmaster/Autoscript/Safe restart

Controller
The controller bot listens for player shouts, before triggering pause/resume for other bots.

Worker
Worker bots continue to run until they hear "Pause!". Once "Pause!" has been called by the controller, the bot will finish execution of their script before waiting for "Resume!" from the controller bot.

The result should be a bot you can tell to (manually) stop, without getting into a state they can't resume from.