No need to sleep if we don't destroy the window before exiting.