Detector updated to detect errors in batch processing and skip over files.