Timed refresh of the program to clean up potential memory leaks. This routine monitors restart.dta and if the software has not been restarted beyond a 2 hour window, the restat.dta file will be updated to the current time and the software restated, otherwise it will continue in its scheduled operation.