[SPARK-3562]Periodic cleanup event logs

link #2391 
Throables are "catastrophic" errors, you shouldn't catch them. (IIRC they're also used as control for some Scala idioms, which also means you shouldn't catch them.)

Catch `Exception` instead.