Fix a bug that left open inputstreams when splitting input.

This caused us to eventually to have too many open files on very large
datasources.
Merge pull request #20 from charsmith/inputstream_bug

Fix a bug that left open inputstreams when splitting input.