Fix error message and returnvalue in fread

Missing `fclose`