Terminating child process with terminate()
Improving child process handling with process group