here you are using the `popup` app object, but we have closed that frame so the app object should not be valid anymore