add retry thread for commit failure in ClientMain