add wrapper to multiprocessing worker functions to collect tracebacks