mod: return code for socket down in *_recv, *_send, *_accept