so maybe something like this should be rescued

```ruby
rescue Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, 
    Net::HTTPHeaderSyntaxError, Net::ProtocolError, Errno::ECONNREFUSED, 
    OpenSSL::SSL::SSLError => e
```