If connection is refused, than no Endpoint property does not exists and logging fails.