XCarve stops randomly

Maybe it is related with Random USB connection loss. Power spikes ? try powering the arduino from a laptop using batteries