5 ways to fix unexpected shutdowns