Don't continue when build has failed

Hello Jacob,

I've made three improvements. The last one addresses issue 2. I hope you will consider merging them.

Regards,
Ian Gibbs