add close method at cliant.rb

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