A method of machining a workpiece, the method comprising: specifying a tool path for a cutting tool, the tool path being a path along which a cutting tool is to be moved during machining, by the cutting tool, of the workpiece, wherein the tool path comprises a plurality of tool path segments; defining, for each tool path segment, an exit point, wherein the exit point of a tool path segment is a point on that tool path segment; defining, for each tool path segment an exit path, wherein the exit path of a tool path segment is a path for the cutting tool from the exit point of that tool path segment to a point that is remote from the workpiece; specifying a sequence comprising a plurality of machining points along the tool path, each machining point being a point along the tool path at which a respective feature is to be machined into the workpiece, wherein each tool path segment includes one or more machining points and wherein the exit point of a tool path segment is located at a last machining point within that tool path segment; performing a machining process including moving the cutting tool along at least part of the tool path and machining, by the cutting tool, the workpiece; and, during the machining process, responsive to determining that one or more criteria are satisfied: interrupting the machining process and moving the cutting tool along a current tool path segment, skipping through the remaining machining points of the segment without machining them, from a current location of the cutting tool to the exit point of the current tool path segment; and moving the cutting tool along the exit path of the current tool path segment. specifying a tool path for a cutting tool, the tool path being a path along which a cutting tool is to be moved during machining, by the cutting tool, of the workpiece, wherein the tool path comprises a plurality of tool path segments; defining, for each tool path segment, an exit point, wherein the exit point of a tool path segment is a point on that tool path segment; defining, for each tool path segment an exit path, wherein the exit path of a tool path segment is a path for the cutting tool from the exit point of that tool path segment to a point that is remote from the workpiece; specifying a sequence comprising a plurality of machining points along the tool path, each machining point being a point along the tool path at which a respective feature is to be machined into the workpiece, wherein each tool path segment includes one or more machining points and wherein the exit point of a tool path segment is located at a last machining point within that tool path segment; performing a machining process including moving the cutting tool along at least part of the tool path and machining, by the cutting tool, the workpiece; and, during the machining process, responsive to determining that one or more criteria are satisfied: interrupting the machining process and moving the cutting tool along a current tool path segment, skipping through the remaining machining points of the segment without machining them, from a current location of the cutting tool to the exit point of the current tool path segment; and moving the cutting tool along the exit path of the current tool path segment. interrupting the machining process and moving the cutting tool along a current tool path segment, skipping through the remaining machining points of the segment without machining them, from a current location of the cutting tool to the exit point of the current tool path segment; and moving the cutting tool along the exit path of the current tool path segment.