Exit with 1 code on error