Close Pipe before exit.