I was able to capture a crash during a PC-Engine game on exit:
———————-
Loading %s…
Using module: %s(%s)
CD-ROM speed: %ux
ROM: %dKiB
ROM CRC32: 0x%04x
ROM MD5: 0x%s
Savestate name: /home/pi/RetroPie/roms/pcengine/Magical Chase.sav
Loading custom palette from “%s”…
Error opening file: %m
RetroArch [WARN] :: init_video_pixel_converter :: 0RGB1555 pixel format is deprecated, and will be slower. For 15/16-bit, RGB565 format is preferred.
RetroArch [WARN] :: gl_glsl_init :: [GL]: Stock GLSL shaders will be used.
———————-