Added closing handling for file read stream