So I went to Wildy wyrm at Mage bank and some guy tried to teleblock me, he failed and I teleblocked him back. (I added him to my friends list)
He started running for it and I chased him, when he after a few seconds logged out, but - this is where the bug occurs - when he logged out I attacked him.
So in my friends list it said he was logged off, his character stayed there, doing nothing. I used D scim spec and he didn't ate nor walked nor turn prayer back on.
When he died the loot didn't show up for me & I even waited 3 minutes.
His friend send me a private messages saying he did NOT die and is now running in world 2.
In short: If you logout at the same time you get attacked, your character won't be logged out, but nothing decisive will happen to your account.