fix async issue of unit plugin in Windows.