process.kill and wait