unify error handling on app/project save — avoid ugly modal message dialog
IDEA-133231 Close last history tab leaves popup shown
more simple code