Hi,
a simple idea for all the phone charger that are permanently plugged in. A power switch that will automatically turn off the appliance plugged in when the consumption falls under a configurable threshold. With the phone plugged into the charger a small charge will always be drawn which keeps the socket alive. Once the phone is disconnected the socket switch detects that almost no power is consumed and hence switches off.
In order to detect if the phone has been connected again the power socket could wake up in regular intervals and check the power consumption. If the consumption is still low it will switch off after a preconfigured time.
As the realisation of this logic is very simple I could envisage such a circuit to be complementary to every phone charger by the manufacturer.