added #dne in the switch case for list processor

#dne returns the list containing the completed tasks