Added plugin unloading and reloading