Bug fix in watchdog and into the reset / close methods of imageGenerator