always close pipe
wip