try/catch in the code using this isn't helping so trying it on the
plugin code