Return clear_completed flag to false after doing the task.
Remove clear tasks optimization.