We could "terminate" ourself by closing the window.
Is it what you're looking for?