apache/spark — pull request #370 by techaddict (2014-04-09 17:04:10+00:00)
Title: SPARK-1446: Spark examples should not do a System.exit

Spark examples should exit nice using SparkContext.stop() method, rather than System.exit
System.exit can cause issues like in SPARK-1407