Hi Restevam,
I also create basic scripts to run when the max run time has breached. This is selected in the drop down next to max run time.
For example, if my script is in Chrome, a "KillChrome" script will run when the time limit has been reached or at any point the script is killed.
Hope this helps.