Process stream errors inside session correctly.