fix cancel ALT+F4 dialog