correct proxy shutdown and signal semantics
remove debug code