debug client shutdown