Fix process handle leak when killing a process on Windows.