Root::shutdown now respects the initialization state
Root::shutdown now respects the initialization state

Before this change, calling Root::shutdown twice or calling
Root::shutdown followed by Root::~Root led to segmentation fault.

RealityFactory/ogre,RealityFactory/ogre,RealityFactory/ogre,RealityFactory/ogre,RealityFactory/ogre