Moved segfault handling from subprocess to multiprocessing