copy stdout / stderr handlers for subprocesses