Bug 1074200 - Ensure that build fails when an exception happens

https://bugzilla.mozilla.org/show_bug.cgi?id=1074200