[FEATURE] Adds a buildError hook

`buildError` hook will be called on when an error occurs during the
`preBuild` or `postBuild` hooks for addons, or when `builder#build`
fails

/cc @rwjblue 
We need to use the closure here to return the original error.