The monitor remains connected to the machine, the machine is unaware monitor is no longer using it as input source, but I assume this part, maybe there's some CEC notification firing.
In my experience, this seems to depend on the monitor. On my LG, the computers think the monitor is still connected.