Hot swappable stepper motor
Since the drive is bipolar, single diodes won't work. What you should use is a pair of series-opposed zeners across each of the coils with the zener voltage a little higher than the drive voltage across the coils, like this: