Optimize logout confirmation

Re-use window instead of creating a new one each time