Why popup window closed???
Have you checked your logs? I am not available these days for these kind of questions. You have to either figure it out on yourself or wait for 4th of October. We can have a screen sharing session then.
I checked the logs and fixed. Thank you @Sebastian