[SPARK-3562]Periodic cleanup event logs

link #2391 
Catching `Throwable` is generally frowned upon.