added getch()-like exit