Sc_exit...doesn't

Why does sc_exit simply not…exit. I’ve checked the requirements and I am using the correct type of application. Shouldn’t it just close that tab? In other words…EXIT? I have a control app that shows the final number in an operation done by a stored procedure. It is a modal called by another app. At the end of the run it shows the number. I click OK…and the NEXT thing it should do is exit. Exit clears the screen, but the tab and the modal window is still open. If I use the javascript modal window clear in the calling app, whisks it away before I have a chance to note the number. On another app, it closes the tab but opens another entire copy of the menu system. Am I missing something obvious? Just…CLOSE!

try: sc_exit(sel)

This has worked great for me in the past.