call close() in dissolve-shapes so that we write the end of a geojson file