Merge pull request #1 from marstonstudio/master

merge back changes
throw exception when an ERROR from beanstalk event logs is encountered
Merge pull request #2 from gqtan/master

throw exception when ERROR event occurs