Fixed failed tasks from not clearing out of task list

- Fixes issue that would cause a failed epoch completion to cause the system to stop working until restart