// If we were viewing a Shiny application, let the rest of the app know
// that the application has been stopped
if (runningShinyAppParams_ != null)
{
runningShinyAppParams_.setState(ShinyApplicationParams.STATE_STOPPED);
events_.fireEvent(new ShinyApplicationStatusEvent(
runningShinyAppParams_));
}
runningShinyAppParams_ = null;
events_.fireEvent(new ViewerClearedEvent());