I see no danger in a properly trained instructor getting out of a running aircraft and indeed consider it a normal competency for an instructor.
Good instruction is also about teaching by example. Entering or vacating a aircraft with the engine running is rarely neccesary, so why do it? It only takes a few seconds for the student to restart the engine when you are clear. Its just as easy to teach a good habit as it is a bad habit.