http://msdn.microsoft.com/en-us/library/ms686724%28v=vs.85%29.aspx
Terminating a thread has the following results:
- Any resources owned by the thread, such as windows and hooks, are freed.
- The thread exit code is set.
- The thread object is signaled.
- If the thread is the only active thread in the process, the process is terminated. For more information, see Terminating a Process.