add exit status in tpl, print output if migration binary failed to run