'Checks all entries for leftover temp files and deletes them.'

def cleanup_temp_files(self, task):

    for entry in ((task.entries + task.rejected) + task.failed):
        self.cleanup_temp_file(entry)
