mmap: handle I/O errors as fatal