Catch exception before the cron transaction is ended
To rollback the transaction must be done before the context manager calls stop on exit.
Closes #13149 (closed)
To rollback the transaction must be done before the context manager calls stop on exit.
Closes #13149 (closed)