Setting the transaction as error happened if unexpected exception is thrown at submission level.
(cherry picked from commit d395dcc)