If an effect kills a player, the server crashes

This is due to the effects list being cleared by the death event and the effects update trying to access the old effects.