listening to window close events is not necessary anymore