This was with the lid closed obviously, and nothing running AFAIK. I opened it up just now and it booted up and showed the error message: Your mac was closed because of a problem do you want to reopen all windows or something to that effect.
Does anyone know anything about that and how to prevent it?
https://imgur.com/a/r6tXMdf
Thanks