I was trying to log out of my world as a mob was attacking me. I had most if not all of my health as I logged out. I logged back in a few minutes later, and my character had died.
Related issues
Comments


I was being attacked by a skelleton. It started attacking me as I was logging out of the game, and I had full health and full iron armor when the attack began. It happened on my personal world. And I was only on the save screen only for a second before logging out.

Unfortunately, you can take damage while loading before the screen shows the world—sometimes for several seconds. We are tracking this issue at MCPE-42310, so I am resolving this report as a duplicate.
Did this happen on a local world, or on a shared, realm, or server world?
We will likely need more specific details to determine whether this is a bug though, such as
What kinds of protection / armor you had
What kinds of mob(s) were attacking
What health you had at the start of the attack
How long you were on the save screen (being on the save screen does not "pause" the game, so you might not see how much damage you are taking.
In general, if you are taking damage during save/quit it is recommended that you deal with it before before logging out, to prevent unexpected deaths like this.
This report has been temporarily resolved as Awaiting Response. It will automatically reopen when you comment with new information. Please provide all requested information. Reports that do not contain enough information may be closed as Incomplete.
Many players find this Bug Report Creation Form useful for filling in all helpful information.