client: send out teardown signal before tearing down