Added auto program exit

when the periodStartDate text file is not found it will automatically
exit.