Close resource InputStream after use