Only persist preferences in store if we are connected