Add reattempt logic for NioSocketConnector.