@Ornitorick Ah, yes. The default Kodi action when you exit for the Raspberry Pi in a TV which has CEC, is to turn off the TV.
You can change to not turn off the TV where you said in System -> System -> Input Devices -> Pheriperals -> CEC and changed to not turn off the TV.
Also keep in mind that if you have the RPi powered by an USB port of the TV, with the default option, since the TV will be turned off, it will cut the energy to the RPi.