Because if you have thhe dos box to no it will hide the dos box. When there is an error you usually have to press ok. well, if it is hidden you won't be able to do that.
One, what OS are you running? ctrl-al-delete, click mame and end task will most likely fix your problem. Try running the game form command line to see what happens.