Ignore connection refused errors for tcp