Variable "text" is a string and it contains the return value of the plugin, I'll rename it to something more appropriate.

It is necessary to raise an exception because so far errors returned by the plugin where ignored,