Added SocketError rescue, retry, log