It seems that sometimes the software/hardware is reluctant to release the port properly when it has been disconnected maybe by an error, so you end up with confusion between the two systems. Normally...