How to kill Samsung Legacy application RF TV

Hi,

I am developing an Angular Application for Samsung Legacy TV.
In a spesific functionality the user can open the native TV app with the win.webapis.tv.window function. But whenever we press ‘EXIT’ or ‘RETURN’ i want the app to be destoyed and not just he hidden.
Until now i am using this “win.webapis.tv.window.hide();”
Is there another method in order to destroy it?