Close a Notch application with a button

Hi is it possible to close a Notch application through a button (Hot zone) in the scene? Should this be done in javascript or would there be a way to do this through Notch?

Thanks

Alex