Core/Worldserver: Fix worldserver stuck on "Halting process" on shutdown

Partially revert 4fe45b8c63d3c4118a0a69c6ed44573c53eba54c to fix worldserver stuck on "Halting process" on shutdown.

Fixes #13201