COM port goes down unexpectedly, but Arduino Leonardo keeps running
Although they are one the same chip, the USB and MCU circuits can function independently. For example, the USB part can be used to reset the MCU part.