target: fix error on TCL command "return" in target event handler