address gdal/ogr related atexit crashes - ref #251