Emit plugin error on failure

When not able to parse it should emit an error to be able to catch from the stream level.
Merge pull request #6 from eduardolundgren/master

Emit plugin error on failure