title: Exiting Spark-shell from the scala script
body: <p>I am using this command to run scala scripts. </p>
  
  <pre><code>spark-shell -i test.scala
  </code></pre>
  
  <p>At the end of the execution of the script I still see spark-shell running.</p>
  
  <p>I have used ":q/:quit" in the test.scala script to try and exit but it's not working.</p>