menuconfig: fix a regression when canceling the prompt dialog at exit