Before shutdown event

It happens too me too often, that I see an update for Home Assistant Core or the OS. As a feature junky, I want it now, rather then later. And sure enough, the system is rebooting just when my spouse needed it (is some way or form).

Wouldn’t it just be amazing, if you could run an automation, knowing it would finish before the system went down?

If you agree, please vote!

Looking at these events, it should be possible. I think the real request here is that the system should wait for running automations to complete, for a max duration of some sorts.