Try to robustify running of cleanup tasks