When submit() fails synchronously, turn it into an asynchronous error callback
Merge pull request #52 from nonolith/async-errors

When submit() fails synchronously, turn it into an asynchronous error