Close InputStream after it's been used