detect network connection lost and show error msg for that when saving.