OK, firstly don't shoot me, I come in peace

What if we can totally prevent the PC from going into sleep mode, throughout the use of our application? What I'm trying to say is that you can use the SetThreadExecutionState Api with the ES_DISPLAY_REQUIRED + ES_CONTINUOUS constants to ensure that the monitor doesn't go into sleep mode while your program is running. Then, whilst exiting your app, you could use the same API only with the ES_CONTINUOUS constant

Just an idea....