[tor-commits] [tor/master] mainloop: Disable periodic events before a destroy