added a more graceful shutdown that disables the motors.