Amend exit call to use EXIT_FAILURE instead of 1.