wait twister threads to finish before destroying libtorrent session object.
may fix #200.