Or if you do get off, don't turn towards home. Keep on the way you were going for a while, then get back on. On a trail, there might not be room to work her on a line.
(Personally, I like getting off & walking or jogging for a bit. Stretches the leg muscles and gets the blood moving, especially in the sitting parts