Preserve timer state when app is closed