Thread.Kill Method

Kills the current thread. Internally, this method will cause your thread's stack to unwind, destructors for local objects to be called, and so forth.

Syntax

It's a graceful exit which can cause code to execute. It may also cause context switches.