title: How to terminate Thread
body: <p>I know there is a lot of questions about this. I tried them but can't get any result.</p>
  
  <p>I'm creating a thread at first run, when I try to close the form, form closing but application (thread) is still running. </p>
  
  <p>I don't care what will happen to thread. I just want whole application to close when user click to X button. I tried <code>thread_name.Abort();</code> but nothing happens. </p>