Get used to “parking” your thralls, horses and pets before you log off.

If you log off or DC while they are following, they go into “scouting” mode and then 15 minutes later immediately port back to their last known guarding position.