If you like to close any application of RE the this onclick will help
<input type=button value ="quit" onclick="application.quit();"/>
you can use
Does that help??