Unsubscribe from timer service when window unloaded.