Program for timed shut down.