Added task status code to force saving task. Used in addObject task to avoid data inconsistency and crashing.