In your Page.define you can add a method 'unload' that will get called whenever your app is being navigated away from the page (similar to the init/ready functions that you can use when your app is being navigated to the page).
E.g.
unload: function () {
// Disable your app bar commands here...
},
This posting is provided "AS IS" with no warranties, and confers no rights.