If inspection needed, stop machining, execute separate inspection program