title: Correct thread destroy
body: <p>Hello
  At my form I create TFrame at runtime. At this frame I create background thread with executes commands in  endless loop. But when I destroy this frame I should destroy this thread.
  I try</p>
  
  <pre><code>thread.Suspend;
  thread.Terminate;
  FreeAndNil(thread);
  </code></pre>
  
  <p>but get AV and ThreadError.
  How should i destroy thread?</p>