Arduino Due gets crazy if unplugged while sending

With the 1.6.6 version of the DUE compiler, the output is exactely as expected with the code I provided.