use PID instead of PROG, and loop through the pids contained killing each with SIGTERM