Just put a few tiny stitches at the starting point of where it came unstitched...quilt forward, then lock the stitches again...then cut off where the thread is loose. I have to do this when I am just quilting along...and BOO...something makes me jump and mess up the quilting. I just make a U turn in the quilting...lock the stitches, then trim away the mess up.