CDK-136. EntityScanner/Batch should implement Closeable/Flushable.