I have the same issue, although I don't have a 100% repro rate for this.
I use BigBox exclusively and sometimes when exiting Mame, I get a black screen.
I read in some other thread that there are apparently 2 BigBox instances running (one running the legit BigBox and the other being the black screen) - However, I did not check if that is the case for me aswell.
This is very frustrating for me since I don't have access to a mouse and/or keyboard on my cabinet and have to restart my cabinet everytime this happens.
I did bind the "Close active window" binding in BigBox, but that never really did anything (don't know if it's broken or if I'm using it wrong).
Are there any news regarding this issue?
Edit: I'm running Mame .193