It's a common occurrence, usually caused by noise triggering the E Stop or limit switch inputs.
If you are running mach3, increase the Debounce setting (if using the parallel port). If you are using a motion controller, some have their own noise filter settings, but some do not.