[SPARK-2752]spark sql cli should not exit when exception

Spark sql cli now will exit directly when we input a bad sql, fix it by catching the exception and print the error~
Hey, line 295, 300 to 304 contain illegal *Chinese* full-width space characters.