Added safeguards

Prevented players who quit while dead from losing their items.