Avoid dispatching with multiprocessing if num_cpus=1
bug fig in exception handling