Can you check system/input/peripherals/cec settings. Make sure action for “when the TV is switched off” is set to ignore.