attempt to gracefully close shapefile resources