The lengths of new thread attached to broken threads can be threaded through a needle, and worked into the knit.
Any last loops can be caught with this needle and thread, and finished off.