fixed performance issue with integration tests; used closeable iterators...

... for all ingestion framwork interfaces to give an opportunity for plugins to provide handles on resources that require closing