[SPARK-3090] Avoid not stopping SparkContext with YARN Client mode

When we use YARN Cluster mode, ApplicationMaser register a shutdown hook, stopping SparkContext.
Thanks to this, SparkContext can stop even if Application forgets to stop SparkContext itself.
But, unfortunately, YARN Client mode doesn't have such mechanism.