Application: Don't respawn if closed while still starting up
+ refactoring of Application::onSessionStateChanged to explicitly cover every single internal state on session stopping. Fixes: #1575577 Approved by: Gerry Boland, Unity8 CI Bot, Michael Terry