ScenarioA: synchronous functionA is executed. The user closes the window in the middle of functionA executing. Does execution of code simply stop as soon as the window is cl