I tend to shut down in the reverse order exaxctly because of the risk of spuirous pulses flying around the system: VFD then controller and PC last of all. Obviously the power up is the reverse of this. It just seems sensible to first dissable the the part that moves, then the part that controls the movement, then the part that issues the instructions to move.