Added logic for torrent session state load.