Gozala/addon-sdk — comment on commit 303029030b9601df5a35867991f7cb0c3325c161
File:  line 0
By Gozala:

> could this get stuck in a loop, whereby application shutdown calls bootstrap.js's shutdown(), which calls loader.unload(), which calls system.js exit(),
> which calls appStartup.quit(E_FORCE), which tells the browser to shutdown, which calls shutdown(), etc?

This is not documented on platform side, but I checked that and shutdown is called only once.