CNC lock after clicking stop button