handle exceptions in clean-up cronjob