fixed the bug on winform exit confirmation