The `buildFailed` variable may not be necessary, could probably get away with checking for errors in the `done()` callback here?