pipe class : Release() method
Releases the unmanaged resources that are used in the pipe.
pipe p = new pipe("newchannel"); // Channel open.
... // Communication.
p.Release(); // Channel close.
If calling the Release() method, the channel will be closed and the instance will return to uninitialized state.
Links for reference