[tor-commits] [tor/master] Fix a crash bug and pass down a remote reason code.