There is so simple protection on current leaks. In Scandinavia they are mandatory for long while already, here - optional.
There are a lot options of them, just first one, like I have:
https://www.elektrika.lv/att/documents/0/424/558.pdf
It costs like 25 €, practically the same as short circuit breaker, so I put them instead "standard" SCB
Basically, if it detects leak bigger than 0.03 mA, it has to disconnect mains in split second.
In my house I dont have it in mains, but on each room / unit separate. I don't like to have house black just because someone forgot extension cord outside and it started to rain
Tesla is 400 V.
But I meant residential lines