[#547] Fix not unloading plugin in legacy modeaw