fix problem in batch processing exception handling