A friend of mine clears the way to the throne, make sure there's no creatures that could directly attack him alive, then exits the character there, forcing an eventual logout.
According to him this is quite safe to do but certainly not 100% safe as someone could attack him or lure creatures on him if the timing is bad.