Clean up the map library