Exit from Blank Application to calling application

I have a blank application that is called from a Grid application.
The blank application runs in a separate window
Once I have completed the onExecute:
How do I close the blank application window?
I have tried sc_exit with the various options but no luck.

Please help

You can always execute a closure using javascript.

in your blank application use something like



//command at the very end of your code
echo "<script>window.close();</script>";