Fix for the exit crash! :D