Any generation or collection in progress will be interrupted. You can turn "Ask when closing the window" back on in the tray menu at any time.