I was always told to stop the charge and then remove the cable from the charger first. If there was no way to stop the charge then, as mentioned, unplug from the car and then when trying to remove the plug from the charger you may need to push it further in to release the locking pin or try wiggling is in case the locking pin is catching on one of the locking hole's sides.