Merge pull request #106 from haio/master

Emit error event in producer
Add pause&resume to consumer