[fix] emit error instead of throw in async context
Merge pull request #98 from marcooliveira/master

emit error instead of throw in async context