Fix closing global thesaurus panel with save confirmation dialog