Collect errors when loading plugins