exception catch and traceback dump