Close InputStream after use

Found with Kohsuke's file-leak-detector.