I don’t see an option for simply exiting the gallery without selecting something. Is there?

I made a new image, then wanted to check something in the gallery, didn’t see what I needed, but then couldn’t simply exit the gallery. All icons available were for actions I didn’t want to take, such as selecting, moving, renaming things. I merely wanted to exit the gallery.

Then in the process, I lost my new image - hadn’t painted, hadn’t Saved; merely created.

Am I missing something?

Thank you!