Better handling of failed refreshes.