This makes sense, and I see why you're firing the command. But it may make sense to use manos.js and the actual removeTab() function to process the tabs serially. Otherwise, if there are multiple tabs with unsaved changes, we will end up throwing multiple dialogs as we run through the remainig tabs, and I don't think that's particularly useful.