Check for and deal with fread errors