Avoid killing threads with TerminateThread, this can cause deadlocks.

1 file changed