Changed how the program terminates from success/failure.