Added support to properly stop/restart ambient sounds when leaving/coming back to a map mode.

Fixes #330