Check proc exit code in ExecCommand.