fix for garbage collector problems when using Ruby MRI 2.0 for client