ui/ncurses: Spawn shell in exit handler