title: How to exit the REPL
body: <p>I'm trying to exit the REPL. </p>
  
  <p>I use <code>(. System exit 0)</code> or <code>(System/exit 0)</code>, but that causes an error: </p>
  
  <pre><code>Exception in thread "Thread-3" java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
  </code></pre>
  
  <p>Is there another way to exit the REPL? How I can resolve this error?</p>