
get out from u-boot you could simple by entering "bootm"( without quotes) on prompt window (Leonid>)
or you can simple unplug TV to get out from uboot. it always works.
all those errors are Samsung related and common, don't trigger, it's ok.
from Top debug menu you can get out by entering last command (usually it is 99) but must look at the screen

It is ok, if you close putty connection while in TDM.
now you're secured and can flash patched firmware. important : if you get any error while patching - do not flash such firmware to TV.
good luck!