Revert "Exit the program if a getch() call fails."

This reverts commit d13d5edd24c3999b58e0137af5544c0ad515f574.