Fixed Crash on exit

Whoopsie!