c order interface ric mhe if early return of error code