Add a cron shutdown function to record the timestamp into an accesable file.
Merge branch 'hotfix-1.0.4'