scheduler: fixed infinite loop / stopped circuits tracking