[SPARK-3562]Periodic cleanup event logs

link #2391 
minor: you could use `Utils.namedThreadFactory()` here (just noticed that method the other day).