[tor-commits] [tor/master] refactor out the tor_event_base_loopexit() call