handle plugin exceptions