I ended up creating a Pipe for each process. Then, when the main process shuts down, it can send a message to all child processes, which they must also close.
To make this work right, you should periodically check the "Processes" processes of the child processes for "Processes" to see if there are messages in the channel, and if so, check them, quit now ".
source share