Added PluginExceptions, rather than writing to Debug.