https on windows and open/close issue

Please test on another windows machine first.