When you destroy your bed, and then die, it takes you back to where the bed originally was.
MCPE-1952 Multiplayer Beds
MCPE-2049 Broken Bed Bug