SERVER-10103 avoid hitting socket exception in the shell