Bind to onerror as well, developer is responsible for checking status of result.
Merge pull request #3 from askore/kerr/5253-bind-onerror

Bind to onerror as well, developer is responsible for checking result status