Exit with code 1 on errors