Log the socket error when something bad happens