Terminate the spawned process deterministically.
- Returns:
- None
- Return type:
None
Notes
Cross-platform strict teardown:
- POSIX: terminates the whole process group (start_new_session=True).
- Windows: attempts CTRL_BREAK_EVENT for process group, then terminate/kill.