close unused pipes