Expand hints for getAddrInfo. More exception safety.

In `http-client-openssl`, without additional address family / socket type hints for the `getAddrInfo` lookup, it can happen that the first `AddrInfo` returned is of type `Datagram`. Also added some more exception-safety.