Improve error handling in TTC and data-driven modes

=== swrod ===

Improve error handling in TTC and data-driven modes (Serguei Kolos)
4 jobs for !185 with kolos/tdaq-09-02-01/swrod in 5 minutes and 5 seconds
merge request