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

Bind sent callback to onerror as well as to onload. Developer using library is responsible for checking status