Fixed crash on player disconnect / entity despawn