Revert "[SPARK-2970] [SQL] spark-sql script ends with IOException when EventLogging is enabled"

This reverts commit 905dc4b405e679feb145f5e6b35e952db2442e0d.