Makes child process objects emit the close event