Fix uncloseable main window on disconnect
Fix uncloseable main window on disconnect

kevinta893/NetworkIt,kevinta893/NetworkIt,kevinta893/NetworkIt,kevinta893/NetworkIt,kevinta893/NetworkIt,kevinta893/NetworkIt,kevinta893/NetworkIt