Ok that shows a warning in the debugger- “Scripts may close only the windows that were opened by it.”, but tried that as well and no success 
Ok that shows a warning in the debugger- “Scripts may close only the windows that were opened by it.”, but tried that as well and no success 