Emit plugin error on failure

When not able to parse it should emit an error to be able to catch from the stream level.