Error handling for plugin/module execution