how to return to main loop instead of function after interrupt?

I haven't tried it myself but I have read elsewhere in the Forum that the watchdog timer interferes with uploading a new version of the code because it triggers while the bootloader runs.

...R