Catch IOError too when trying to import gis models.