Handling multiprocessing exceptions