Ensure that child processes are terminated