Way to diagnose shutdown hangs?