add Set CloseOnExit