imported patch 23020
link close() to it's IDL reference
reverting 38bddf7d3cdd as that is WIP not ready for being pushed