This is a WINSOCK error : WSAEHOSTDOWN
It simply means you are tring to connect to a server on a socket but that server is not listening on that port.
You can verify this by running netstat -an and looking for that port to see if there is a listen on it.
For the engine problem, it looks like the TCP/IP connection was lost. Stop the engine, not the thread: hcienginestop -p
It may take a while as it may have to kick it to death.