SP-798 - Backport of PDI-9790 - Job finishes successfully even though the logging process falls over (5.0) 

original fix + junits