iterating on the historical session reader, trying to make task cancellation more robust