title: what is best way to leave a groovy script prematurely (except system.exit(0))
body: <p>what is best way to leave a groovy script prematurely ?</p>
  
  <p>A groovy script reads a row from a given info file then makes some verification work, in case of verification fails (inconsistent data) script needs to leave the flow  prematurely . Then system will call the script again to read next row of the same info file</p>
  
  <p>Code example :</p>
  
  <pre><code> read a row
   try{
     //make some verification here
   }catch(Exception e){
      logger("exception on something occurred "+e,e)
      //here need to leave a groovy script prematurely
   }
  </code></pre>