LPS-49970 allow redundant closes when deleteOnClose = true