Corrected Failure Logic

Wasn't exiting out of the program on failure.