Made the program exit on failure.