proper teardown once a client disconnects