Added log error for socket error