Returning a rejected promise from a setup or ready process is supposed to be an API for not opening the window.
Since https://gerrit.wikimedia.org/r/#/c/oojs/ui/+/532746/ it has resulted in an uncaught exception, and the window manager closing promise not continuing.