Setting the transaction as error happened if unexpected exception is thrown at submission level.