Update client.rb

When I use with rails,we want to close connection by each request.
so, I add close method.