Confirmed that the confirmation quit is disabled, I have mapped a joystick button to exit retroarch, before I used joytokey to send an ESC now it is direct with a button.
I only have the load game messages active, and randomly I keep losing focus when exiting the game.
If I open mame games that I launch with retroarch and I hit the exit button, in many occasions it works fine, but in some I fail, and this is a problem because I have it in arcade without keyboard and it makes me restart the system.
I don't have any script in the load, I have tried with WinActivateBottom and it doesn't work either, bigbox is the only application that runs, and the only special thing I have is that I use two screens, one for games and another one for marquees.