[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 
this is not happening, the old closed over var is `self`.