Safely unmounts a map and cleans up its resources
The map id to unmount
Optional
Optional, the html element where the map was mounted
Safely unmounts a map and cleans up its resources