Now it seems to work on shutting down.
But now another problem arose.
After several successful attempts to suspend (kill MP and TVServer) and resume (restart DVB driver, start TVServer and MP) the app fails to kill TVServer and start MP:
26.11.2008 18:27:23 - INFO MPstandbyHandlerService 2.0.0.2, Utils 2.0.0.4
26.11.2008 18:27:29 - INFO System Start
26.11.2008 18:29:55 - INFO System Session Change: ConsoleConnect
26.11.2008 18:38:09 - INFO System PowerEvent: QuerySuspend
26.11.2008 18:38:09 - INFO OnQuerySuspend
26.11.2008 18:38:09 - INFO OnQuerySuspend
26.11.2008 18:38:09 - INFO System PowerEvent: Suspend
26.11.2008 18:38:09 - INFO OnSuspend
26.11.2008 18:38:09 - INFO JobTools Load - Loading SUSPEND jobs from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Jobs
26.11.2008 18:38:09 - INFO Job Load - Loaded MediaportalStop job with 6 properties
26.11.2008 18:38:09 - INFO Job Load - Loaded TVServiceStop job with 6 properties
26.11.2008 18:38:09 - INFO JobTools Load - Loaded 2 SUSPEND jobs
26.11.2008 18:38:09 - INFO JobTools Load - Loading RESUME jobs from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Jobs
26.11.2008 18:38:09 - INFO Job Load - Loaded HardwareDeviceRestart job with 6 properties
26.11.2008 18:38:09 - INFO Job Load - Loaded TVServiceStart job with 5 properties
26.11.2008 18:38:09 - INFO Job Load - Loaded MediaportalStart job with 7 properties
26.11.2008 18:38:09 - INFO JobTools Load - Loaded 3 RESUME jobs
26.11.2008 18:38:09 - INFO Flags Load - Loading flags from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Flags-Service.xml
26.11.2008 18:38:09 - INFO Flags Save - Saving flags to C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Flags-Service.xml
26.11.2008 18:38:09 - INFO TVServiceStart - Setting TVService run flag to True
26.11.2008 18:38:09 - INFO MediaportalStart - No need to set run flag, Mediaportal should start always
26.11.2008 18:38:10 - INFO OnSuspend - Unable to run remote job (MPstandbyHandlerUser not running / not connected): MediaportalStop
26.11.2008 18:38:10 - INFO Process Stop - Trying to KILL TvService (20s) (id:3056)
26.11.2008 18:39:01 - WARNING Process Stop - Unable to terminate TvService (id:3056)
26.11.2008 18:39:03 - INFO OnSuspend - Done
26.11.2008 18:39:14 - INFO System PowerEvent: ResumeSuspend
26.11.2008 18:39:14 - INFO OnResume
26.11.2008 18:39:14 - INFO Settings Load - Loading settings from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\MPstandbyHandlerUtils.xml
26.11.2008 18:39:15 - INFO OnResume - Unable to show splashscreen, MPstandbyHandlerUser not running
26.11.2008 18:39:15 - INFO JobTools Load - Loading RESUME jobs from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Jobs
26.11.2008 18:39:15 - INFO Job Load - Loaded HardwareDeviceRestart job with 6 properties
26.11.2008 18:39:15 - INFO Job Load - Loaded TVServiceStart job with 5 properties
26.11.2008 18:39:15 - INFO Job Load - Loaded MediaportalStart job with 7 properties
26.11.2008 18:39:15 - INFO JobTools Load - Loaded 3 RESUME jobs
26.11.2008 18:39:15 - INFO HardwareDeviceRestart - Trying to restart: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:15 - INFO System PowerEvent: ResumeAutomatic
26.11.2008 18:39:15 - INFO OnResume - Already resuming
26.11.2008 18:39:21 - INFO HardwareDeviceRestart - Device successfully disabled: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:21 - INFO HardwareDeviceRestart - Waiting 3s before trying to enable: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:26 - INFO HardwareDeviceRestart - Device successfully enabled again: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:26 - INFO TVServiceStart - Delaying for 10s
26.11.2008 18:39:36 - INFO Service Start - Trying to start (20s): TVService
26.11.2008 18:39:56 - INFO Service Start - Successfully started: TVService
26.11.2008 18:39:56 - INFO OnResume - Unable to run remote job (MPstandbyHandlerUser not running / not connected): MediaportalStart
26.11.2008 18:39:56 - INFO OnResume - Done
But now another problem arose.
After several successful attempts to suspend (kill MP and TVServer) and resume (restart DVB driver, start TVServer and MP) the app fails to kill TVServer and start MP:
26.11.2008 18:27:23 - INFO MPstandbyHandlerService 2.0.0.2, Utils 2.0.0.4
26.11.2008 18:27:29 - INFO System Start
26.11.2008 18:29:55 - INFO System Session Change: ConsoleConnect
26.11.2008 18:38:09 - INFO System PowerEvent: QuerySuspend
26.11.2008 18:38:09 - INFO OnQuerySuspend
26.11.2008 18:38:09 - INFO OnQuerySuspend
26.11.2008 18:38:09 - INFO System PowerEvent: Suspend
26.11.2008 18:38:09 - INFO OnSuspend
26.11.2008 18:38:09 - INFO JobTools Load - Loading SUSPEND jobs from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Jobs
26.11.2008 18:38:09 - INFO Job Load - Loaded MediaportalStop job with 6 properties
26.11.2008 18:38:09 - INFO Job Load - Loaded TVServiceStop job with 6 properties
26.11.2008 18:38:09 - INFO JobTools Load - Loaded 2 SUSPEND jobs
26.11.2008 18:38:09 - INFO JobTools Load - Loading RESUME jobs from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Jobs
26.11.2008 18:38:09 - INFO Job Load - Loaded HardwareDeviceRestart job with 6 properties
26.11.2008 18:38:09 - INFO Job Load - Loaded TVServiceStart job with 5 properties
26.11.2008 18:38:09 - INFO Job Load - Loaded MediaportalStart job with 7 properties
26.11.2008 18:38:09 - INFO JobTools Load - Loaded 3 RESUME jobs
26.11.2008 18:38:09 - INFO Flags Load - Loading flags from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Flags-Service.xml
26.11.2008 18:38:09 - INFO Flags Save - Saving flags to C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Flags-Service.xml
26.11.2008 18:38:09 - INFO TVServiceStart - Setting TVService run flag to True
26.11.2008 18:38:09 - INFO MediaportalStart - No need to set run flag, Mediaportal should start always
26.11.2008 18:38:10 - INFO OnSuspend - Unable to run remote job (MPstandbyHandlerUser not running / not connected): MediaportalStop
26.11.2008 18:38:10 - INFO Process Stop - Trying to KILL TvService (20s) (id:3056)
26.11.2008 18:39:01 - WARNING Process Stop - Unable to terminate TvService (id:3056)
26.11.2008 18:39:03 - INFO OnSuspend - Done
26.11.2008 18:39:14 - INFO System PowerEvent: ResumeSuspend
26.11.2008 18:39:14 - INFO OnResume
26.11.2008 18:39:14 - INFO Settings Load - Loading settings from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\MPstandbyHandlerUtils.xml
26.11.2008 18:39:15 - INFO OnResume - Unable to show splashscreen, MPstandbyHandlerUser not running
26.11.2008 18:39:15 - INFO JobTools Load - Loading RESUME jobs from C:\Documents and Settings\All Users\Application Data\MPstandbyHandler\Jobs
26.11.2008 18:39:15 - INFO Job Load - Loaded HardwareDeviceRestart job with 6 properties
26.11.2008 18:39:15 - INFO Job Load - Loaded TVServiceStart job with 5 properties
26.11.2008 18:39:15 - INFO Job Load - Loaded MediaportalStart job with 7 properties
26.11.2008 18:39:15 - INFO JobTools Load - Loaded 3 RESUME jobs
26.11.2008 18:39:15 - INFO HardwareDeviceRestart - Trying to restart: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:15 - INFO System PowerEvent: ResumeAutomatic
26.11.2008 18:39:15 - INFO OnResume - Already resuming
26.11.2008 18:39:21 - INFO HardwareDeviceRestart - Device successfully disabled: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:21 - INFO HardwareDeviceRestart - Waiting 3s before trying to enable: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:26 - INFO HardwareDeviceRestart - Device successfully enabled again: TechniSat DVB-PC TV Star PCI
26.11.2008 18:39:26 - INFO TVServiceStart - Delaying for 10s
26.11.2008 18:39:36 - INFO Service Start - Trying to start (20s): TVService
26.11.2008 18:39:56 - INFO Service Start - Successfully started: TVService
26.11.2008 18:39:56 - INFO OnResume - Unable to run remote job (MPstandbyHandlerUser not running / not connected): MediaportalStart
26.11.2008 18:39:56 - INFO OnResume - Done