bugfix: destroy window blocks UI