Finishing thelast two stitches of kitchener stitch

I am trying to finish up the toes of socks with the kitchener stitch… so far, so good, except I don’t know what to do with the last stitch on each needle. How do I finish them, so that they are secure? HELP, please!! :thinking:

Knit the front one, purl the back one, taking them both off the needle then sew in the end.