slightly modify error handling on refresh attempt