Ensure the hostname can be looked up before reusing a session
This allows us to quickly detect if the connection could still be valid or not, otherwise we have to wait for the session timeout until we can retry.