fix to prevent child processes from turning to zombies