avrdude: ser_open(): can't set com-state for "\\.\COM13"

I am trying to upload a sketch to Arduino Leonardo but i get this error despite successful sketch verification. Any idea what is wrong? Is my Leonardo dead? :frowning:

Sketch uses 21826 bytes (76%) of program storage space. Maximum is 28672 bytes.
Global variables use 1304 bytes (50%) of dynamic memory, leaving 1256 bytes for local variables. Maximum is 2560 bytes.
avrdude: ser_open(): can't set com-state for "\\.\COM13"
An error occurred while uploading the sketchh

Try restarting your computer. Sometimes a glitch will cause a COM port to get stuck in an unusable state and the restart fixes that.