窗口关闭bug修复