How do I programmatically delete the "select symbol dialog", the one you get when pressing the * button (series60 ).

I have a dialog whit an input field and when I do TryExitL(...) all works fine....If I haven't pressed the * button. This dialog is still present after the deletion, and if I do select on it the application terminates.