bugfix: window close