How to kill Samsung Legacy application RF TV


I am developing an Angular Application for Samsung Legacy TV.
In a spesific functionality the user can open the native TV app with the 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 “;”
Is there another method in order to destroy it?