title: CasperJS: how to exit script execution?
body: <p>Yesterday I've written my first tests with CasperJS and I find it amazing. The problem is that I couldn't find a way to exit the script execution (ie: casperjs doesn't exist so I can get back access to my console). I've found an workaround by adding a final test like so</p>
  
  <pre><code>casper.test.begin('Exit', function suite(test) {
      casper.exit();
  });
  </code></pre>
  
  <p>Regarding this technique I have 2 questions</p>
  
  <ol>
  <li>Is there a better way?</li>
  <li>How would that impact the output of the results to xunit file?</li>
  </ol>