title: PHP script continues after closing / stopping page
body: <p>Seems php scripts continue even after closing or stopping a page.</p>
  
  <p>for example, if my script is run by
  /localhost/test.php</p>
  
  <p>after I close the page, sometimes it continues to run.  I'm pretty sure restarting apache clears it out but is there a better way to terminate the php script after it's started.</p>