FileStitcher: prevent readers from remaining open

This allows datasets with thousands of files to be opened without
causing the JVM to run out of file handles.

Fixes ticket #10971.