Explicitly close input stream after it was read.