Better handling for OSM API exceptions.