More I/O error checks.