Add a cleanup task.