This may be due to the particular ROMs I’m using (most work great), but certain ones freeze Lakka with a black screen upon attempting to start emulation, namely Contra (NES) and Altered Beast (Genesis). I can still SSH in to Lakka and issue a reboot command, which takes about 60 seconds before presumably killing the locked core and initiating the reboot (normally it restarts extremely quickly).
My suggestion to prevent this is to figure out a way to check if the running core is “alive” and if not to kill it and return to the main menu. I don’t know if this is possible without a lot of work. Do the cores support a “ping”-like command to report they’re working? If so then the solution would be relatively easy to implement. It could even prompt the user at that point, “Core crashed. Would you like to remove the game from your library?”