Be more selective about who to kill in process group since processes
launched by non-interactive bash (such as Jenkins) will have the same
process group id as their parents (i.e. the Jenkins Slave) and as it
was any other Java process that Jenkins was running (and the Jenkins
slave itself) were getting killed as well as our targets.