This uses the NS_XPCOM_WILL_SHUTDOWN_OBSERVER_ID notification to produce the places shutdown messages, emulating what happens in the browser.