set client fields to nil upon closing so that if the client is referencing the connection there isn't a circular reference