crash when quiting backtrace after closing dialog window