Getting shot to death by any type of musket/revolver by a CQR mob such as a Pirate makes the game think that you killed yourself. (Not to be confused, my minecraft username is Creeper)
LordEpos commented
Whoops, I thought we'd fixed that before alpha, my bad.