Addad Task.WaitAll to the end of RunCracking2-method. Now it works.