fixed NoSuchElementException in TaskTracker when terminated was called for already removed task