No more segfault when quitting the program.