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.
I'm surprised that it is wise to do this before all the messing with browser documents. But you didn't change that, so I suppose it is OK.