Bug: Export to images, Cancel, Duplicate ending frame

If we export any model to jpeg and cancel processing then the last frame saved is always duplicate of prelast.