Just a simple QOL suggestion. I forget I have DF running, and occasionally go for a shutdown to update windows. It'd be nice if DF stalled windows shutdown to ask if I want to save.
May be possible, depends on if it can be caught and implemented in time to do any good[1], though it's still often a flaky behaviour even for something as simple as an unsaved Notepad session.
The problem lies more with Windows itself, especially when you get a nigh-on unstoppable system-restart thing from the OS, and super-especially when it initiates this from the background without your intervention at all (perhaps it thinks you're happily idle; I've had plenty of overnight reboots whilst I was running something interesting I'd hoped to resolve by morning).
I think it might just be easier to make it your own habit to manually close every open window (including minimised ones) before you agree with an any dialogue that indicates a restart is part of the process. It's a 'code patch' that works on many more releases of software, past and future, with just the one 'install' and you don't even need to reboot your machine to apply it.
(Yeah, sometimes I catch myself out on that, don't think I'm being holier-than-thou, but I'm just saying it anyway.
)
[1] My preference would be to lose a sub-season amount of play (I always enable Seadlsonal Autosaves, so never risk more than a quarter of a game-year if things happen, and less if the force-quit happens within the same season as the savegame I loaded) rather than have the closedown-save
start to overwrite the savefile but only do a half-job and corrupt the results (with autosaves, I still have season-start available to copy/rename to restart from, but I'd yave lost the mid-season loading point I have with zero saving attempts). But YMMV.