Fixed crashing on exit