Fixed issue of removing an invalid torrent handle.