Move constructor of tpub to inside if session != null
Put stack trace in SDSM