[SPARK-3562]Periodic cleanup event logs

link #2391 
You forgot to handle exceptions here (see my previous coments on the subject).