Add the ability to set a watchdog to recover in the case of a bad behaving function which does not return as it should.
Default timeout is set to 15 seconds.