Fixed segfault after finished non-stop generation thread