about debug mode

Why on debug mod the worldserver.exe does not close when is called server shutdown or restart?

It stuck at “Halting process…”

Are you running it through the Visual Studio debugger or the binary independently?