rescue socket error