fix a bug in exception catch and use timer:tc