exception in parallel_map in loop