handle exception when creating geojson