This is going to vary by program and no solution is guaranteed to be perfect even if tailored for a specific time-sink program (TSP henceforth).
Would you be OK with the TSP being force-closed and potentially losing all progress and/or work, like a grumpy parent yanking a power cord?
What's to stop you from simply re-opening the TSP again? Or opening the TSP outside the control of whatever's supposed to tell you "no more"? (Related to "snooze" and "don't even bother setting the alarm" hacks for more regular alarm clocks!)