fixed close watchdog bug.