This is somewhat race-y, of course; the process can go away after the call to process.kill().