Add process.wait after kill