HTPC do not go to standby after recording finished

Hi,

I have the problem that my HTPC do not go to standby after a recording is finished. I’m using Kodi 16.1 with DVBViewer Recording Service 1.32.0.0 on Windows 7 64 Bit.
The HTPC is connected via an USB-CEC Adapter and HDMI to my TV. So i can receive all buttons of the tv remote control on PC. To handle the remote control buttons i use EventGhost.
If EventGhost receives the power off button press of the remote control it sends the HTPC to standby via System.Suspend.

The problem is the following situation:
– start a recording
– continue watching some other tv channel
– shut down the TV
– HTPC receives the power of signal from TV –> event ghost triggers a system suspend.
– the DVBViewer Recording Service prevents the PC to go to standby because of running recording (I think the recording service switches windows to the away mode)
– after the recording is finished the PC stays active and do not go to standby

Does anybody know the problem or have an idea ?