Quit when get uncaughtException in specs.
Fix error when showing empty menu.