no-shutdown-if-pvr-is-not-idle

Hi there, maybe someone can help: If my kodi is recording (TV) (dvblink pvr) it is possible to shut down that pc. I all control it with a harmony one, so it is a one button switch off.
In MCE it wasn’t the case, the htpc stayed on during recording and puts the htpc into sleep after the recording was finish. Now in kodi it isn’t? Wake from sleep to do a recording works, and it also goback into sleep after finish if i don’t interfear.
Maybe someone can help?