Workaround/fix for output manager - AssertionError - assert self._parent is current_process() #997
Was unable to reproduce in my environment, so I researched a little bit and now I'm commiting a workaround that should help make this dissapear
Reduce the number of times the domain is checked against the target domain