Retry accept operations if the socket is closed.

Under certain scenarios, a socket can be already closed
when the HandleAccept callback is invoked. In those cases,
issue a new Accept operation.

The old behaviour was wrong. The server stopped accepting new
connections entirely.