If my thread breaks, I unstitch enough stitches to give me enough thread to tie it off and bury them with a needle. Then I restart a couple of stitches back, taking the bobbin thread up to the top and leaving enough to tie off and bury. That way there's not visible knots, or thickness of stitching from stitching over a previous stitched line.