should only be one window, but better to quit