Ensuring subprocesse are dead on exiting program