refs #13667 register at exit function to cleanup the child process