After you've finished your decorative stitching, pull gently on the thread tail from the back of the piece until a loop of the thread from the front pops through. Use a pin to grab that loop and pull the front thread through to the back. Tie the two threads together in a firm knot.