handle err in tx stream