as far we did understand you want to run kill process with some more control on scope of termination, right?
the newer version of kill process can do it:
Also have a look here: