Rework historical data error handling to be more robust.
Rework historical data error handling to be more robust.

JoshuaJB/uncenergy,JoshuaJB/uncenergy,JoshuaJB/uncenergy,JoshuaJB/uncenergy,JoshuaJB/uncenergy