fix(api): properly resolve the promise if a callback throws an Error
Merge pull request #249 from thgreasi/promisedCallbacks

fix(api): properly resolve the promise if a callback throws an Error