Added support for DuplicateAndClose