Better handle closing for map data.