> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Debug long shutdown times

> Find JavaScript objects that aren't released when the launcher takes too long to close.

If the host process hangs when it closes, a JavaScript object usually wasn't released. Run the launcher with these arguments to find it:

```bash theme={null}
--debuginterop --debug --file
```

`--debuginterop` logs when instances are created, removed and leaked. The other arguments write the debug log to `host.developer.log`.

## Read the log

The log shows when instances are created and removed:

```text theme={null}
Create Instance (17B19859-7228-4443-B7F4-CABAFD503353:SSN.App)
Create Instance (8AFD7D68-0FA8-4440-8DB7-EBB3BB4718F9:SSN.SkinWindow)
...
Remove Instance (8AFD7D68-0FA8-4440-8DB7-EBB3BB4718F9)
Remove Instance (17B19859-7228-4443-B7F4-CABAFD503353)
```

Near the end, during shutdown, you see something like:

```text theme={null}
Manager state changing from (Shutdown) to (Idle)
Manager thread shut down successful
Maximum Memory in use (1453 / 1598k)
===============================================================================
Interop instance (D2D57A1D-06A0-4CBD-8ED8-41586CD84AB6) active
Interop instance (8AFD7D68-0FA8-4440-8DB7-EBB3BB4718F9) active
Interop instance (C45AD5E4-AE8F-4BA3-AEAC-99962FCB345F) active
Interop instance (17B19859-7228-4443-B7F4-CABAFD503353) active
Remove Instance (8AFD7D68-0FA8-4440-8DB7-EBB3BB4718F9)
Remove Instance (C45AD5E4-AE8F-4BA3-AEAC-99962FCB345F)
Remove Instance (17B19859-7228-4443-B7F4-CABAFD503353)
Interop instance (D2D57A1D-06A0-4CBD-8ED8-41586CD84AB6) active
1 native instance(s) leaked
```

* Each `Interop instance (...) active` line is an instance that's still active. The list is written every 15 seconds.
* `1 native instance(s) leaked` means an instance couldn't be released in time.

Trace each active instance back to where it's created in your skin's JavaScript and make sure you release it.

## Related

* [Run the client in debug mode](https://docs.directgvr.com/troubleshooting/debug-mode.md)
* [Core command line](https://docs.directgvr.com/reference/client-skin-system/core-command-line.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.