fix potential crash on exit