After an IRC discussion:
1) add CloseRootWindow() function in Runtime Class, which calls root_window_->Close(); 
2) in Application::OnRuntimeRemoved invoke the mentioned above at "if (runtimes_.empty()) {" condition