Close inventory and recalculate drops to fix various bugs with player death