Workaround for Captive Portal auto closed when it is authenticated