If `connect` raises a `Rex::ConnectionTimeout`, then `res` will be uninitialized on this line.