Re-ordered errors handling in plugin_load.