Minor fix to close off open InputStreams