Close the InputStream in LogFileCollector

Change-Id: I4458ebca1a9944e732f383a85b0d18d0123c9459