call sc.stop() in accordance with spark 0.8