Hi Jasper27,
I don't have experience with RetroFE. Just an idea: some frontends kill the emulator app instead of letting it exit properly. They do this by capturing the escape key, usually. If this is so, make sure to disable that undesired behaviour.