Fix potential crash on exit