Incorrectly thought perror would cause the program to quit.