Watchdog timer and slow shutdown