Stop locating when the map is destroyed

I think that the widget should stop locating when the map is destroyed.