Stop the server process and clean up all resources.
Idempotent and safe to call concurrently. The synchronous state lock prevents process teardown and resource cleanup from interleaving, while the generation counter prevents an in-flight async restart from spawning a replacement after this terminal stop wins the race.