Change BatchProcessor to throw Excpetion instead of IOException