title: My Visual FoxPro application appears to close... but is still running in the Task Manager
body: <p>My FoxPro program has a quit button and the usual min/max/X buttons in the top right, and when using either the program disappears and seems to have closed properly.  However, when I check my Task Manager, I find that it is still running.  </p>
  
  <p>This is my main.prg file:</p>
  
  <pre><code>ON SHUTDOWN CLEAR EVENTS
  with _screen
  .visible = .f.
  endwith
  
  DO FORM locations\form1
  READ EVENTS
  ON SHUTDOWN 
  </code></pre>
  
  <p>and this is the code for my exit button 'click' event:</p>
  
  <pre><code>unlock all
  close database all
  clear events
  RELEASE ALL
  quit
  </code></pre>
  
  <p>My program has only the one form and it's set as top-level... any suggestions as to how I can fix this?</p>
  
  <p>Thanks for your time and help :)</p>