This could have been avoided if the charging port had a manual disconnect switch next to it, rated to handle the arcing at full power.
Auxiliary contacts can then release it and tell the computer that you manually killed the port. I dislike this "computer exclusively in the loop" design methodology.