hostfix closeWindows bug