Fix crash on close via VPN-popup, issue #12