Added fix for to prevent incorrect logging with multiprocessing jobs.