Fix error handling of RunUntilCompletion and its usage

If used from the daemon pclose might fail with the error code ECHILD
because the custom signal handling for the CHILD signals.

Signed-off-by: jkaiser <jkaiser@kaiserj-2.zdv.uni-mainz.de>