Fix to allow application closing from multiple views and a single view.