endwin() before exit after update