And also, I think there are other Jedi out there hiding. If you ask Kreia about other Jedi across the galaxy she says there might be some. And "for every Jedi and Sith to fall another takes its place".
Point taken. Jedi are tough and able to survive right. So not all are killed.