added a catch for geos exceptions