better torrent error handling