Would you mind a more verbose comment?  It'd be good to include

- description of the function
- when the handler will return a non-nil error
- when the handler will return nil but still fail to rebuild (why is this the case, by the way?)