in the proxied close method, process the callback before opening the new connection