### Bug description _No response_ ### Steps to reproduce 1. Start recording 2. Click Close button while recording is active 3. Observe ### Expected behavior Audacity is closed ### Actual behavior The User sees the dialog asking whether they want to Save (Yes/No) or Cancel: <img width="260" alt="Image" src="https://github.com/user-attachments/assets/3c3011ce-1f27-45f4-bd2a-668a9f42d8c6" /> ### Audacity Version master ### Operating system Other, OS independent ### Additional context Interestingly enough, Audacity won't quit if you press Ctrl (Cmd) + Q while recording.