don't destroy the window if it's the last