Remove old reference to ChallengeIndex and patch error message returned on bad write to socket.