Improve load error checks.