Make WrapLogger work more reliably for subprocess calls