Close the InputStream in LogFileCollector