close the pipe