Bug 993737 - Only fire shutdown notifications on main thread. r=gsvelto