ui/ncurses: Exit safe mode on configuration change