Allow callbacks to return errors.