That's not a robot problem, that's a toddler problem.
We don't leave our young toddlers to roam freely around the house for a reason. Our homes are full of hazards to these risk-seeking small people and a robot is just one more on the list.
Not that big of a problem, right? Just put a lot of power sockets throughout the workspace. Robot gets to its work station, can be tethered and recharge when it's operating there. Similarly in a household.