A couple more changes to try and fix the negative time problem on shutdown.
Add time refresh.