client resource cleanup