update with fixes for thread-safe and better exceptions
https://trac.torproject.org/projects/tor/ticket/11414
https://trac.torproject.org/projects/tor/ticket/11415