Fix for intermittent "HRESULT: 0x8001010E " exception