Fix crash on exit (BL-487)

The main crash got fixed in geckofx, but this change fixes some
missing dispose calls that might also have contributed to the
problem.
Don't know what went wrong this time...maybe I was only searching down and
needed to search up. Anyway, I now see where OnXulRunnerShutdown is
attached to XulRunnerShutdown.

On Mon, Nov 3, 2014 at 8:55 AM, Eberhard Beilharz <notifications@github.com>
wrote:

> In src/BloomExe/Program.cs:
>
> > @@ -226,6 +238,15 @@ static void Main(string[] args)
> >  			}
> >  		}
> >
> > +		private static void OnXulRunnerShutdown (object sender, EventArgs e)
>
> This gets called from Browser.OnApplicationExit. We want this code to be
> called when the application exits, but it needs to be done before
> Browser.OnApplicationExit calls Xpcom.Shutdown, so I added
> Browser.XulRunnerShutdown event.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/BloomBooks/BloomDesktop/pull/89/files#r19736911>.
>