Cleanup of logging around the capture subprocess call