I don't get why return :timeout here, just return (nil) if connect_result == :timeout:

```ruby
return if connect_result == :timeout
```