[SPARK-3090] Add shutdown hook to stop SparkContext for YARN Client mode