Moved the "lie" in front of "with open(AUTH_COOKIE, "rb") as f:" block.
The socket was not closed after "net/listeners/socks" request.