Worked on reducing the app exit crashes causes.

The good news are that the app doesn't crash anymore because of trying to delete
thread that were never started for instance.
It also will unregister properly from the Ogre listener now.

The bad news is that the game is still crashing in Ogre when unloading the material
plugin.