Closing proxies on exit