Take into account the child return code when call subprocess_logging