[SPARK-3562]Periodic cleanup event logs

link #2391 
I think you should update the app list before you clean up the file system. That way, you won't be serving links to dead logs (even if only for a short period).