add nn.clearerr() to zero errno. getting duplicate replies on non-blocking nn.recv()