I'm not sure if this is possible with just software, but if the car was able to detect it was sliding, and the charge cable was plugged into the car, that it could spit the cable out of the car. Charging on an incline in snow or icy weather may have the car slide in place even in park. Maybe...