SPARK-2159: Add support for stopping SparkContent on exit or exit() repl command.