❔ how to detect when you close the window - C#