Catch errors that may occur on shapefile creation