service.py: sleep in cleanup to avoid out of order log messages