changed how client terminates because ncurses #78