Fix possible crash when closing RDP connection

Fixes a crash detected on remmina 1.2 when closing a connection
window with alt-f4