[#75]Fix memory leak when closing editor while dialogs are open