Close open pipe after use in client.rb