Catch by reference in PluginsManager.cpp