speed up shutdown sequence using priorities