Close InputStream after decode