Pull the threaded needle through the wrong side of the fabric and slide the needle under the back of the nearest stitch. Tie several knots with the thread and then cut the thread off as close as you can to the back of the stitch.