plugins: don't unload plugins that aren't loaded