--- title: "shutdown()" slug: "shutdown" updated: 2026-02-12T14:34:41Z published: 2026-02-12T14:34:41Z canonical: "docs.developer.comcast.com/shutdown" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.developer.comcast.com/llms.txt > Use this file to discover all available pages before exploring further. # shutdown() ## shutdown() The app shuts itself down and returns to the X1 UI. This method is a replacement for `window.close()`. #### Signature: `$badger.shutdown()` #### Parameters: None. #### Return Values: None. #### Usage Example: ``` $badger.shutdown(); ``` #### Mandatory Integration: Must be called any time a user has pressed the LAST key on their remote when the app is at the top of its view stack. Must be called anywhere the app would have normally called `window.close()`.