FIX: removing endpoints during shutdown on windows.