[SPARK-3562]Periodic cleanup event logs

link #2391 
nit: add `$dir` to the log message, in case it does not show up in the exception.