Improve exception handling for concurrent execution.