Shields would do the trick (especially if they're powered by a small-scale fusion reactor). And you wouldn't have to get close. They couldn't block shotgun shells forever. Eventually they'd run out of juice, and you just have to bring enough ammo to get you there.