catch OSError/socket.error waiting for HTTPErrors

catches ECONNREFUSED