compare against k-th best, not against the best
fix : allow partial execution locally + remove terminated threads
better cleanup of terminated threads