fixing mistake in the way we handle bias term for bellman constraints in final constraints, adding simulation failure detection to do_task_eval