Improve handling of DXGI_ERROR_DEVICE_REMOVED error