Log returncode and stderr only when subprocess returned non-standard values