Are you running into any issues regarding the order of the handle destructions?
If so, this should be fixed in this PR 1. Could you install the latest nightly binary and retry it?
If you are not seeing an issue, you could ignore the ifdef as it’s used only in some internal builds, if I’m not mistaken.