[sql]use SparkSQLEnv.stop() in ShutdownHook