Close the input stream after reading
Merge pull request #4 from rscottm/master

Close the input stream after reading