child process wait added on before die