modifying the hendling of timeout, new cmdline option called TermOnTimeout