I have my iMac (running Mojave) on a UPS. A few days ago power went out for a short while when I was away. I came back to find the iMac in the middle of a shutdown process (initiated by the UPS), but a dialog asking me to confirm quitting an application had stopped it. Fortunately, the power...