Move the cleanup code into conn_close and remove the need for a dtor
function for resource GC/cleanup.  It's easier.