Stop the SparkContext gracefully after job is finished.