Catch connection refused errors