Fixed annoying non-issue with an segfault on exit.