title: How to Stop iMacros JavaScript script?
body: <p>Each time I use loops inside iMacros script the script will not stop when I press Stop button. It just skips to another loop counter and continues. </p>
  
  <p>So if I have one macro inside two loops like bellow:</p>
  
  <pre><code>while(counter &lt; 10)
  {    
      for(var i=0; i&lt;10; i++)
      {
          iimPlay(macro)
      }    
  }
  </code></pre>
  
  <p>I would have to press Stop couple of times until some error doesn't pop out or the counters don't stop. So how to avoid this and when I press Stop button once the script stops?</p>