[PluginManager] Improve error handling for parse method