workaround for multiprocessing map and keyboard interrupt