Handle errors robustly in parallelism producer.