Added EXIT_FAILURE and more calls to _print_error()