Fix leaks. Ad-hoc proxy