Cleans up a core plugin for loading plugins