zeroing  output on error if running
adding software estop trigger