Arduino Due gets crazy if unplugged while sending

I have tried your code, and changed the sam library version to 1.6.6
The output after making the Native USB unplug (while sending data via terminal) and plug againkeeps being wrong. The order of the message has changed, with my code happened the same.
It is the output with the 1.6.6 version and your code.

788Value :
 789Value :
 790Value :
 791Value :
 792Value :
 793Value :
 794Value :
 795Value :
 796Value :
 797Value :
 798Value :
 799Value :
 800Value :
 801Value :

when it should be

Value :788
Value :789
Value :790
...