On FreeBSD, the TCP connection callback could spuriously receive ISC_R_CONNECTIONRESET even when connection to the loopback interface. Skip the other checks in such case and graciously shutdown the TCP connection.