I can\'t close the pop-up window,I wrote a function that in fact should close the window, well, it does not close, and even more so even the exception does not work immediately