MacOS restart process and unsaved app data
Help me understand something regarding MacOS and restarts.
I select Restart and apps start to close down but then it stalls and sits there for about 4-5 mins doing nothing. I then swap to another desktop and notice I have a spreadsheet open and a spinning ball which suggests the OS can't close it. Eventually I get a dialog stating this which says I can either Cancel or Continue.
I choose to Cancel so that I can save the spreadsheet and then select 'restart' again...but that's not what happens.
The spinning ball returns and I can again do nothing to save the spreadsheet. I must do a Force Quit which means I lose the spreadsheet data.
My question is, why can't MacOS do a clean exit from the process so that I can save the spreadsheet data given it gives me the option to cancel the restart?
MacBook Air (M5, 2026)