Exception handling in makettf.pl