Updating library to handle timeout exceptions on ruby 1.8. Thanks to @mhenke for identifying this issue.