trapping parent process signals to kill child processes.