I'd like to merge this but I'm thinking it might be better to take a third argument to the sendMessage function representing an onError callback

`sendMessage: function (options, success, errror) { ... }`

That way the developer can choose to do as they please with the error (log it, throw a UI dialog, etc).