title: Nashorn hangs inside thread
body: <p>While running java's nashorn javascript engine inside a thread and upon the code</p>
  
  <ul>
  <li>engine.eval(jscript);</li>
  </ul>
  
  <p>the application hangs. Is there something to do with thread safety? How can one run engine.eval inside a thread or callback ?</p>