updates 'denode' to close the pipe when done