The process of the game(exe) running should be terminated by means of two conditions:
(1) pressing ESCAPE key or
(2) system idle for more than 15 seconds.
Its quite straight forward. 20 lines of code and a days 0f time.
Hope the current source code will be delivered to incorporate the functionality
Mabja Tech.