[tor-commits] [tor/master] practracker: split shutdown code out of main.c