anything that is hot plugged has to be designed that way
Hot plug devices are designed with special connectors wher the GND pin is guaranteed to be connected first
for eg take a look at sata power cable
[attachment 121074 sata_power.jpg]
See the different length pins? the gnds are longer.
Next the power supply of the controller needs to have sufficient current reserves not to brown out crashing the controller.
Then the software has to be able to handle it.
Hot plug devices are designed with special connectors wher the GND pin is guaranteed to be connected first
for eg take a look at sata power cable
[attachment 121074 sata_power.jpg]
See the different length pins? the gnds are longer.
Next the power supply of the controller needs to have sufficient current reserves not to brown out crashing the controller.
Then the software has to be able to handle it.