All dialogs were incorrectly closed - fixing.
Application closing done right.