For most CNC machines, it’s best to push the emergency stop before turning off the controls. This shuts power off to the drives.
If you hit an over-travel it’s better to re-home the machine before running the program again. The zero point may change after hitting an over-travel.