Their have been multiple times I've been on incognito on google chrome and safari online and then I fall asleep to then wake up to my Mac dead out of charge, what I've found is once I've charge my Mac and I'm able to log back into my user the incognito window is still running, it doesn't automatically close like it does when you log out.
You can even try this experiment for yourself if your Mac on a low percentage of charge right now, open a incognito window, put on a youtube video or something in that window, let your Mac die, then charge it back up, log back into your user, and the window will still be there.
Is their a command I can put in that closes my incognito chrome and safari windows when my Mac runs out of charge? Or maybe even an app?
I've tried searching this question but couldn't find any answers. Thanks :)