shutdown clients and then wait for persistence