Fail the build if xbuild fails
Created by: ascjones
Previously if the xbuild failed it would continue to the optimization step, which would of course fail too because of the missing artifact.
This PR fails the whole build with an error if the xbuild
step fails.