my sense of the jedi being killed in the films is because they have become to much part of the government and are being corrupted and becoming elitist they hed to be taken down a peg and the force made that happen then luke comes and builds them up better than before. In kotor the jedi are also destroyed cause of there inability to act because they wanna stay clean and not get involved all we ever see is history repeating itself ie. jedi get destroyed, jedi rebuild, jedi masters get to high and mighty, jedi get destroyed rinse and repeat