To reproduce:
1.) Start XnView and display browser
2.) Open an image in fullscreen light (F11 key, or "View in Fullscreen" in context menu)
3.) In context menu select "Close" to close the image and return to browser.
--> XnView exits.

Note:
This bug is related to "CTRL+W Close the program!!".