Or put a small capacitor and a diode into the circuit. When the car is turned on it will charge. After the ignition is turned off the capacitor would discharge and the diode would keep the power from going upstream into the system.
Unsure of which capacitor to use. That would be up to someone who has played with them a little more.