in reply to Getting Client to Disconnect

I'm not sure if there is something other than close($client) that would do what I want

Do you have a reason to want something other than close($client)?