is the intention to kill all worker processes and use env to identify them?   another idea (which is much less codes) is to kill the child or grand child of the worker process.  See ProcessExtensions.GetParentProcess (one native call).    For runnaway process, we can kill any process without a parent.  Could we have killed ligit process w/o parent?  I can't think of such.