fix torrent registering issue
handle stop event