Commented out the watchdog idle hold feature to allow the watchdog active even the cpu is in the idle state.
Set the watchdog timeout to 30 seconds instead of the default 60 seconds.
Fixed the magic watchdog close logic.