Do not unplug motor cables while the printer is turned on. If the motors are enabled (energised), then unplugging them can produce a spike in voltage that can damage the stepper drivers on that axis.