fix in exception handling in thr-pt