My sewing machine (a basic Janome machine from about 1997) really wants to drift to the side at the very end of seams, and I've found that using a walking foot eliminates this problem for me. (I've tried using leaders and enders, and they didn't seem to help with this issue, but I do love them for prevent thread "bird nest" tangles.)
I highly recommend giving it a try and see if you like the results.