first writing settings to hd, then unloading plugins