ESC on Polylines and curves

If we draw e.g. a polyline and hit ESC after the 14th good point, the command cancels the entire unfinished polyline.
Of course no Undo for that…
Comes up in every training.

It would be useful if there was a way to have a choice.
At least after the 2nd point.