I'm not sure if this is required. When the client is collected, does its connection get cleaned up? I added a close method just to be sure.
Added a BeanstalkClient close() method.
I'm not sure this is strictly necessary as usually all open connections are cleaned up on quit. I'll check this and merge if necessary. Thanks for the patch!