Build errors

The main reason is for Jenkins to fail correctly, instead of marking a job as success when the build actually failed.