[tor-commits] [obfs4/master] Clean up/refactor the shutdown/termination handling code.