remove unused function EndMessageAbortIfEmpty()