USB ports are very susceptible to static electricity. This commonly occurs when connecting & disconnecting USB devices.
If you have to use a USB port for charging I would recommend a powered USB hub.
If you have to use a USB port for charging I would recommend a powered USB hub.