[Bug 2365] Ogre3D based game crashes on exit