Added error handling for automatic refreshing