make sure we tidy up after ourselves when a client is closed