automatically stop the thread at the end of the reactor.

This avoids hangs when txrequests's session is not properly closed.