How to return correctly from - sc_error_exit()

So I have a message on the Form (in onScriptInit) to show an error and redirect the user back to the TOP MENU. When I use sc_error_exit() I end up with the doubled Menu.
I tried different parameters (with and without App name, with “_self” and “_blank”) but nothing works.
No matter what I do after clicking OK on a SC_error_message() I end up on the doubled Menu.
I am using new “responsive” menu.

BTW: SC-Macro Help is a mess. In the syntax they show double quotes, but in the examples they show single quotes, so I;m always confused which is correct (?)

Any suggestions ?
Thanks

May help you.
I show my messages with a App Control. so i replace the line: sc_error_exit() with sc_redir (control_message…)

Yes , that is what I am doing already (before I posted this message), but I wanted to avoid unnecessary complexity, and wasted processing power.
Looks like this MACRO does not work 100% as expected. Shall we consider it is a bug ?

Thank you for the reply - alvagar