#3 close window from swing thread.