Fixes Issue #166: invalid torrent handle crash