Coding on bittorrent download finish logic.