free window on init error