Feh lets you configure its actions for keyboard keys and mouse buttons. See its manpage for further information, and this post in the official Raspberry Pi forum. The action to exit feh is called quit in its configuration files.
So, maybe you could configure a quit key in feh and set a very high delay time in Retropie. Just an idea after a little research, I don't have any practical experience with this.