Thread.getAllStackTraces().keySet().each() { if (it.name.contains('sampleZombieJob')) { println "Stopping $it.name" it.stop() } }