Be simpler and more consistent about reporting I/O errors.