improved exception handling in run_tssb