Accurate COM port handling after dongle reset