Exiting on first sign of error with x flag