Unify error return values in main
Instead of three different ways to quit we now always use return EXIT_FAILURE