Fixed freeze on close with opened subwindow