Time-to-time, I face similar problems while uploading sketches in my NANO/UNO/MEGA/DUE. I don't do unplug/plug-back UBS cable. What I do is the refreshing of the Virtual Serial Communication Port Driver.
Start ----> Device Manager ----> Ports ----> Arduino Due Programming Port ----->
------> Update Driver Software... ------->