[Core] Don't perform anything with tabs on shutting down.

It's a last-resort measure and a kludge, though. We'd better gracefully
closed all the tabs and all the windows before shutting down, but that
requires some changes to the shutdown process, TSM and so on.