parent and child processes are killed at the end of script