I use the latest beta for debugging which was started from the Explorer.
The problem is not in the termination, but in awaking after the hibernation.
After the hibernated machine becomes awake, all sensor values are frozen.
If it is possible to automatically restart it after hibernation, it would be also a solution.
Currently I tried this (not in the debug session I've posted) on a task scheduler event, but this failed due to insufficient permissions.
Do I need to terminate it in behalf of local system account?