Fix segfault in Socks5Connection destructor