Windows: Fix crash when unloading AutoScroll plugin