It depends what you mean by "losing control" and by "ideal sailing boat".
Some boats are designed for cruising, some for off-shore, some for racing. They each make compromises when out of their ideal conditions. For example a racing boat may have a lighter keel which needs to be longer to generate sufficient righting moment, but this would prevent it from entering shallow bays. Meanwhile a cruising boat carries an engine, fuel, cooker, fridge and large compact keel which means it won't accelerate like a racing boat.
If losing control means being overcome by excessive wind or waves, then to some extent the sail plan can be chosen to encourage the boat to head up into the wind as it heels over and most boats will do this anyway. In the extreme case, boats can be designed to be self-righting.
If losing control means that the crew are incapacitated or washed overboard, then it would be helpful if the boat would stop or at least slow down a lot. In reality this will depend on the point of sail they are on (reach, run, beat, etc) and whether the controls are being held by the crew, as is often the case in a dinghy, or cleated off as is more usual in yachts due to the forces involved. In the latter case there would need to be some way for the boat/system to detect that the crew were not in control. Maybe there's a short-range wristwatch transmitter that would trigger the boat to stop if it went out of range?
Perhaps an "ideal" sailing boat would automatically heave-to or something similar when controls are released.
I don't know much about ice-sailing boats, but I imagine they have some way of counter-balancing the heeling caused by the wind, presumably they are catamarans. In theory they could also be designed to head up into the wind when over-powered.