libmal: Handling IOError