- Reimplement TerminateShell function using WaitForSingleObject