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.
Probably. But I guess that's something JohnH has to decide.
However, it looks like I overlooked these changes when I committed - since they are only whitespace changes they shouldn't be included in this commit.