Terminate the current thread. Returning from the function used to create the thread also ends the thread.