=rem #3967 Handle refused connections as association failures

The issue was that when the connection attempt failed, the EndpointManager still assumed that it would eventually get a UID.
We now treat the connection failure as an InvalidAssociation and let the EndpointManager shut down the Endpoint.