UA: listen for 'unload' and call #stop()

This closes sessions when navigating away from the page/tab