in reply to More forking help
This may help depending on your platform. On *nix boxes you can use pkill -P ppid to kill all children of the process with PID ppid. On windows there is a utility from SysInternals called pkill that can be used to kill a process and its tree. pskill -t program.